﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.StartOrder.Forms
{
    public partial class FrmSelectOneShop : Form
    {
        public delegate void AplydefaultShopHander(bool flag);
        public event AplydefaultShopHander aplydefaultShopEvent;
        private string _shopName;
 
        public FrmSelectOneShop(string shopName)
        {
            InitializeComponent();
            _shopName = shopName;
        }

        private void FrmSelectOneShop_Load(object sender, EventArgs e)
        {
            lbShopName.Text = _shopName;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            aplydefaultShopEvent(true);
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

    }
}
